import {lazy} from 'react'

const homeroutes:any=[
    {
        path:"/home/index",
        element:lazy(()=>import('../pages/home/Index'))
    },
    {
        path:"/home/my",
        element:lazy(()=>import('../pages/home/My'))
    }
]

const router=[
    {
        path:"/",
        redirect:"/login"
    },{
        path:"/home",
        element:lazy(()=>import('../pages/Home')),
        children:homeroutes
    },{
        path:"/login",
        element:lazy(()=>import('../pages/Login'))
    }
]
export default router